package com.udi.project.business.base.mapper;

import com.udi.project.business.base.domain.BaseCorpVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseCorpMapper {

    public List<BaseCorpVo> selectcorplist(BaseCorpVo name);
    public int insert_corp(BaseCorpVo baseCorpVo);
    public int del_corp(Integer[] ids);
    public BaseCorpVo selectCorpById(Integer id);
    public int edit_corp(BaseCorpVo baseCorpVo);

    public List<BaseCorpVo> selectzcbarlist(BaseCorpVo baseCorpVo);
    public int insert_zcba(BaseCorpVo baseCorpVo);
    public int del_zcba(@Param("ids") Integer[] ids);
    public BaseCorpVo selectZcbaById(Integer id);
    public int edit_zcba(BaseCorpVo baseCorpVo);

    public List<BaseCorpVo> getdept(@Param("deptid") Integer deptid);

    public BaseCorpVo checkDeptNameUnique(Integer deptId);
    public BaseCorpVo checkTyshxydmUnique(String code);
    public BaseCorpVo checkCorpCodeUnique(String code);

    public BaseCorpVo checkZcbahUnique(Integer deptid,String code);
    public BaseCorpVo checkZcbacpmcUnique(Integer deptid,String name);
}
